package com.easycms.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author yushuo
 * @className
 * @descripton TODO
 * @date 2021/2/23 9:01
 **/
public class LoggerHelper {
    private static final Logger log = LoggerFactory.getLogger(LoggerHelper.class);


    /**
    *
     * @author yushuo
     * @description 异常
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
    **/
    public static  void error(String msg){
        log.error(msg);
    }
    /**
     *
     * @author yushuo
     * @description 异常
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void error(String format,Object param){
        log.error(format,param);
    }
    /**
     *
     * @author yushuo
     * @description 异常
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void error(String format,Object param1,Object param2){
        log.error(format,param1,param2);
    }
    /**
     *
     * @author yushuo
     * @description 异常
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static void error(String format, Object... arguments){
        log.error(format,arguments);
    }

    /**
     *
     * @author yushuo
     * @description 信息
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void info(String msg){
        log.info(msg);
    }
    /**
     *
     * @author yushuo
     * @description 信息
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void info(String format,Object param){
        log.error(format,param);
    }
    /**
     *
     * @author yushuo
     * @description 信息
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void info(String format,Object param1,Object param2){
        log.error(format,param1,param2);
    }
    /**
     *
     * @author yushuo
     * @description 信息
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static void info(String format, Object... arguments){
        log.error(format,arguments);
    }
    /**
     *
     * @author yushuo
     * @description 调试
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void debug(String msg){
        log.debug(msg);
    }
    /**
     *
     * @author yushuo
     * @description 调试
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void debug(String format,Object param){
        log.error(format,param);
    }
    /**
     *
     * @author yushuo
     * @description 调试
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void debug(String format,Object param1,Object param2){
        log.error(format,param1,param2);
    }
    /**
     *
     * @author yushuo
     * @description 调试
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static void debug(String format, Object... arguments){
        log.error(format,arguments);
    }
    /**
     *
     * @author yushuo
     * @description 警告
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void warn(String msg){
        log.warn(msg);
    }
    /**
     *
     * @author yushuo
     * @description 警告
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void warn(String format,Object param){
        log.error(format,param);
    }
    /**
     *
     * @author yushuo
     * @description 警告
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static  void warn(String format,Object param1,Object param2){
        log.error(format,param1,param2);
    }
    /**
     *
     * @author yushuo
     * @description 警告
     * @date 9:11 2021/2/23
     * @param [msg]
     * @return void
     **/
    public static void warn(String format, Object... arguments){
        log.error(format,arguments);
    }


    /**
    *
     * @author yushuo
     * @description 控制台输出错误信息
     * @date 15:51 2021/2/23
     * @param [msg]
     * @return void
    **/
    public static void console(String msg){
        System.err.println(msg);
    }
}
